using System;
using System.ComponentModel;

namespace shfa.snomtastic.data.business
{

    public partial class SettingInfo
    {

        #region Members
        public String Category { get; set; }
        public String Subcategory { get; set; }

        #endregion

        #region Constructors

        public void FillDetails()
        {
            CategoryController cc = new CategoryController();
            try { this.Category = cc.SelectCategory(this.CategoryId).Name; }
            catch {}
            cc = null;

            SubcategoryController sc = new SubcategoryController();
            try { this.Subcategory = sc.SelectSubcategory(this.SubcategoryId).Name; }
            catch {}
            sc = null;

        }

        #endregion
    }
}


